package com.term.appadmin.pojo.view;

import com.term.appadmin.utils.DateUtils;
import com.term.domain.User;

/**
 * Created by chenGang on 2016/12/15.
 */
public class UserElementView {

    private Long id;

    private String name;

    private String mobile;

    private String createdTime;

    public UserElementView() {
    }

    public UserElementView(User user) {
        this.id  = user.getId();
        this.name = user.getUsername();
        this.mobile = user.getMobile();
        this.createdTime = DateUtils.formatDate(user.getCreatedTime(), "yyyy-MM-dd HH:mm:ss");
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(String createdTime) {
        this.createdTime = createdTime;
    }
}
